<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title>web</title>
		<script type="text/javascript">
			//将1-10的数字打印到控制台
// 			for(var n1=1;n1>=1 && n1<=10;n1++){
// 				console.log(n1);
// 			}
			// 计算1到100的和
			var sum=0;
			for(var n1=1; n1<=100;n1++){
				sum+=n1;
			}
			console.log(sum);
			
		</script>
	</head>
	<body>
		
	</body>
</html>